<ion-view view-title="订单促销" class="proorder">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	<ion-content class="bg" ng-style="myObj">
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		<div class="item nolist text-center" ng-if="promotionList.length==0||promotionList==null">
			<img src="./img/guilin/other/no-coupon@2x.png" />
			<p class="textone">没有相关促销订单</p>
			<p class="texttwo">赶快添加吧！</p>
		</div>
		<div class="list margin-bottom-10" ng-repeat="promotion in promotionList">
			<div class="item orderframe">
				<div>
					<span class="act_nametext">{{promotion.name}}</span>
					<span class="act_statetext" style="color: {{promotion.status_color}};">{{promotion.status}}</span>
				</div>
				<div class="item item-input padding-0 timeframe">
					<img class="shopimg" src="./img/guilin/promo/time.icon@2x.png" />
					<span class="timetxt1">{{promotion.start_time}}</span>-<span class="timetxt2">{{promotion.end_time}}</span>
					<span class="numtext" ng-if="promotion.order_num">已售{{promotion.order_num}}笔</span>
				</div>
			</div>
			<div class="item btnsframe">
				<div class="btns" style="color:{{btn.color}};border-color:{{btn.color}};" ng-repeat="btn in promotion.buttons"  on-tap="show_page(btn.id,promotion.act_id)">{{btn.name}}</div>
				<!--<div class="btns" style="color:rgb(55,123,238) ;border-color:rgb(55,123,238) ;">编辑</div>-->
			</div>
		</div>
		<!--加载-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>
	<div class="bar bar-footer">
		<div class="addclerk" on-tap="onshow_addpro()">添加订单促销</div>
	</div>
</ion-view>